package website.lucaswork.survey.core.daos;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import website.lucaswork.survey.core.entities.User;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
	public User findByUsername(String username);
	public User findByEmail(String email);
	public Page<User> findAll(Pageable pageable);
}
